SaveToAPrevDraft
Document ShellThe SaveToAPrevDraft method consolidates the changes in the specified range of drafts.
void SaveToAPrevDraft (in ODDraft from, in ODDraft to);
from
- A reference to the first (most recent) draft in the range.
to
- A reference to the last (oldest) draft in the range.
DISCUSSION
If theto
parameter iskODNULL
, it is set to the draft immediately previous to thefrom
draft. This method copies the content of all the drafts between thefrom
draft (inclusive) and theto
draft (exclusive) to theto
draft. It then makes all the drafts from thefrom
draft (inclusive) to theto
draft (exclusive) empty. The document shell or container application can call theCollapseDrafts
method to delete these empty drafts from this document.For this method to be successful there must be no outstanding drafts between the
from
draft (exclusive) and theto
draft (exclusive). An outstanding draft has a reference count greater than 0, meaning that it is being used by an object.EXCEPTIONS
kODErrDraftDoesNotExist
- Either the
from
draft does not exist, theto
draft does not exist, or thefrom
draft is not a later draft than theto
draft.kODErrOutstandingDraft
- There are outstanding drafts between the
from
draft (exclusive) and theto
draft (exclusive).SEE ALSO
TheODDocument::CollapseDrafts
method (page 138).
TheODDraft::SaveToAPrevious
method (page 183).
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help